﻿<phone:PhoneApplicationPage xmlns:toolkitPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"  
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"  
    xmlns:uc="clr-namespace:QWeiBoN.UserControler"
    x:Class="QWeiBoN.UserControler.AddStatus"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    BackKeyPress="PhoneApplicationPage_BackKeyPress" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="80"></RowDefinition>
            <RowDefinition Height="5"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Style="{StaticResource AddPageTitleBgStyle}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="400"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Horizontal" Grid.Column="0">
                <TextBlock Text="新微博" x:Name="AddTitle" Style="{StaticResource AddPageTitleTextStyle}" />
                <TextBlock Text="(0)" x:Name="AddTextCount" Style="{StaticResource AddTweetWordCountStyle}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal"  Grid.Column="1" HorizontalAlignment="Right">
                <Image x:Name="imgPhotoIcon" Source="/Resources/icon/landskape.png" Stretch="Fill" Height="60" Visibility="Collapsed" Margin="0,0,15,0"/>
                <Image x:Name="imgGeoIcon" Source="/Resources/icon/POI.png" Width="30" Height="30" Stretch="Fill" Visibility="Collapsed"/>
            </StackPanel>
        </Grid>
        <toolkit:PerformanceProgressBar Width="400" Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Center" x:Name="AddProgressBar" IsIndeterminate="False" />
        <StackPanel Grid.Row="2" Orientation="Vertical">
            <TextBox x:Name="AddContent" Style="{StaticResource AddTweetContentStyle}" VerticalScrollBarVisibility="Auto" TextChanged="AddContent_TextChanged" GotFocus="AddContent_GotFocus" LostFocus="AddContent_LostFocus"></TextBox>
            <TextBlock x:Name="fStatus" Style="{StaticResource AddTweetTargetStyle}"></TextBlock>
        </StackPanel>
        
        <uc:FaceList x:Name="FaceSelect"/>
        <uc:ReferenceUserControler x:Name="UserSelect" />
        <uc:TopicsControler x:Name="TopicsSelect" />
        
        <Button x:Name="CBtn" Margin="0,-10,0,0" Width="1" Height="1" BorderThickness="0"/>
            
        <!--
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        -->
        <!--TitlePanel 包含应用程序的名称和页标题
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="我的应用程序" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="页面名称" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>
        -->
        <!--ContentPanel - 在此处放置其他内容
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"></Grid>
        -->
    </Grid>
 
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Opacity="0.6">
            <shell:ApplicationBarIconButton x:Name="SendBtn" Click="SendBtn_Click" IconUri="/Resources/icon/sent.png" Text="发送"/>
            <shell:ApplicationBarIconButton x:Name="ImageBtn" Click="ImageBtn_Click" IconUri="/Resources/icon/camera.png" Text="图片"/>
            <shell:ApplicationBarIconButton x:Name="FaceBtn" Click="FaceBtn_Click" IconUri="/Resources/icon/face.png" Text="表情"/>
            <shell:ApplicationBarIconButton x:Name="MentionedBtn" Click="MentionedBtn_Click" IconUri="/Resources/icon/mentions.png" Text="提及"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="ClearImage" Click="ClearImage_Click" Text="清除图片"/>
                <shell:ApplicationBarMenuItem x:Name="ClearContent" Click="ClearContent_Click" Text="清除文字" IsEnabled="False"/>
                <shell:ApplicationBarMenuItem x:Name="AddTopic" Click="AddTopic_Click" Text="插入话题"/>
                <shell:ApplicationBarMenuItem x:Name="BackBtn" Click="BackBtn_Click" Text="前一页" />
                <shell:ApplicationBarMenuItem x:Name="HomeBtn" Click="HomeBtn_Click" Text="返回主页" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
